<script>
	export default {
		globalData: {
			listRisk: [],
			listProcess: []
		},
		watch: {
			'$route': {
				handler(newVal) {
					console.log(newVal.query, "query");
					const query = newVal.query
					if (query.token) {
						uni.setStorageSync('token', query.token)
					}
					// 处理路由变化
				},
				immediate: true // 如果需要在组件加载时立即执行
			}
		},
		onLaunch: function() {
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	@import '@/uni_modules/uview-ui/theme.scss';
	@import "~@/static/css/style.scss";

	uni-toast {
		z-index: 99999999999999999 !important;
	}

	.uni-sample-toast {
		z-index: 99999999999999999 !important;
	}
</style>